package java6681.salary;

public class Worker6681 extends Employee6681{
    public Worker6681() {
    }

    public Worker6681(String name, double salary) {
        super(name, salary);
    }
    public String toString() {
        //员工的基本信息
        return "普通员工："+ "id="+getId()+",姓名="+getName()+"" +
                ",基本工资="+getSalary()+",增加工资="+getIncrease();
    }
    public void raise(double percent) {
        //按比例调整工资
        super.setIncrease(getSalary()*percent);
    }
}
